package com.datareport.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 统计规则实体类
 */
@Data
@TableName("stat_rule")
public class StatRule {
    @TableId(type = IdType.ASSIGN_UUID)
    private String ruleId;
    private String name;        // 规则名称
    private String description; // 规则描述
    private String tables;      // 关联表(JSON)
    private String conditions;  // 过滤条件(JSON)
    private String groupFields; // 分组字段(JSON)
    private String aggFields;   // 聚合字段(JSON)
    private Integer status;     // 状态(0:禁用,1:启用)
    private LocalDateTime effectTime; // 生效时间
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}